// 1. 初始化Git


import 'package:flutter/material.dart';

void main() {
  runApp(MaterialApp(
    home: Main(),
  ));
  
}

class Main extends StatelessWidget {
const Main({ Key? key }) : super(key: key);

  @override
  Widget build(BuildContext context){
    return Scaffold(
      appBar: AppBar(title: Text('Container组件的使用'), backgroundColor: Colors.pink,),
      body: Container(
        height: 100,
        width: 300,
        color: Colors.blueAccent,
        child: 
        Row(
        children: [
          Container( width: 50, height: 100, color: Colors.red, ),
          Expanded(child: Container( width: 50, height: 100, color: Colors.green, ),  flex: 1),
          Expanded(child:Container( width: 50, height: 100, color: Colors.pink, ),  flex: 2),
          ],
        )
      )
     
    );
  }
}